.class Lcom/ryg/dynamicload/internal/DLPluginManager$1;
.super Ljava/lang/Object;

# interfaces
.implements Lcom/ryg/dynamicload/internal/DLPluginManager$OnFetchProxyServiceClass;


# instance fields
.field final synthetic this$0:Lcom/ryg/dynamicload/internal/DLPluginManager;

.field final synthetic val$context:Landroid/content/Context;

.field final synthetic val$dlIntent:Lcom/ryg/dynamicload/internal/DLIntent;


# direct methods
.method constructor <init>(Lcom/ryg/dynamicload/internal/DLPluginManager;Lcom/ryg/dynamicload/internal/DLIntent;Landroid/content/Context;)V
    .locals 0

    iput-object p1, p0, Lcom/ryg/dynamicload/internal/DLPluginManager$1;->this$0:Lcom/ryg/dynamicload/internal/DLPluginManager;

    iput-object p2, p0, Lcom/ryg/dynamicload/internal/DLPluginManager$1;->val$dlIntent:Lcom/ryg/dynamicload/internal/DLIntent;

    iput-object p3, p0, Lcom/ryg/dynamicload/internal/DLPluginManager$1;->val$context:Landroid/content/Context;

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method


# virtual methods
.method public onFetch(ILjava/lang/Class;)V
    .locals 2

    if-nez p1, :cond_0

    iget-object v0, p0, Lcom/ryg/dynamicload/internal/DLPluginManager$1;->val$dlIntent:Lcom/ryg/dynamicload/internal/DLIntent;

    iget-object v1, p0, Lcom/ryg/dynamicload/internal/DLPluginManager$1;->val$context:Landroid/content/Context;

    invoke-virtual {v0, v1, p2}, Lcom/ryg/dynamicload/internal/DLIntent;->setClass(Landroid/content/Context;Ljava/lang/Class;)Landroid/content/Intent;

    iget-object v0, p0, Lcom/ryg/dynamicload/internal/DLPluginManager$1;->val$context:Landroid/content/Context;

    iget-object v1, p0, Lcom/ryg/dynamicload/internal/DLPluginManager$1;->val$dlIntent:Lcom/ryg/dynamicload/internal/DLIntent;

    invoke-virtual {v0, v1}, Landroid/content/Context;->startService(Landroid/content/Intent;)Landroid/content/ComponentName;

    :cond_0
    iget-object v0, p0, Lcom/ryg/dynamicload/internal/DLPluginManager$1;->this$0:Lcom/ryg/dynamicload/internal/DLPluginManager;

    # setter for: Lcom/ryg/dynamicload/internal/DLPluginManager;->mResult:I
    invoke-static {v0, p1}, Lcom/ryg/dynamicload/internal/DLPluginManager;->access$002(Lcom/ryg/dynamicload/internal/DLPluginManager;I)I

    return-void
.end method
